package com.imti.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.imti.dao.AccountDao;
import com.imti.entity.Account;
import com.imti.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (Account)表服务实现类
 *
 * @author makejava
 * @since 2023-01-31 11:25:39
 */
@Service("accountService")
public class AccountServiceImpl extends ServiceImpl<AccountDao, Account> implements AccountService {

    @Autowired
    private AccountDao accountDao;

    @Override
    public int register(Account account) {
        return accountDao.register(account);
    }

    @Override
    public Account login(String accPhone) {
        return accountDao.login(accPhone);
    }
}

